import http from "../util/request";

export const getDataListSync = () => http.get("/api/player");

export const removePlayerSync = (id) =>
  http.delete(`/api/player/delete?id=${id}`);

export const addPlayerSync = (data) => http.post("/api/player", data);

export const editPlayerSync = (id, data) =>
  http.patch(`/api/player/update?id=${id}`, data);
